package com.scgl.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scgl.order.mapper.ScglGiveMapper;
import com.scgl.order.domain.ScglGive;
import com.scgl.order.service.IScglGiveService;

/**
 * 产品信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-28
 */
@Service
public class ScglGiveServiceImpl implements IScglGiveService 
{
    @Autowired
    private ScglGiveMapper scglGiveMapper;

    /**
     * 查询产品信息
     * 
     * @param giveId 产品信息主键
     * @return 产品信息
     */
    @Override
    public ScglGive selectScglGiveByGiveId(Long giveId)
    {
        return scglGiveMapper.selectScglGiveByGiveId(giveId);
    }

    /**
     * 查询产品信息列表
     * 
     * @param scglGive 产品信息
     * @return 产品信息
     */
    @Override
    public List<ScglGive> selectScglGiveList(ScglGive scglGive)
    {
        return scglGiveMapper.selectScglGiveList(scglGive);
    }

    /**
     * 新增产品信息
     * 
     * @param scglGive 产品信息
     * @return 结果
     */
    @Override
    public int insertScglGive(ScglGive scglGive)
    {
        return scglGiveMapper.insertScglGive(scglGive);
    }

    /**
     * 修改产品信息
     * 
     * @param scglGive 产品信息
     * @return 结果
     */
    @Override
    public int updateScglGive(ScglGive scglGive)
    {
        return scglGiveMapper.updateScglGive(scglGive);
    }

    /**
     * 批量删除产品信息
     * 
     * @param giveIds 需要删除的产品信息主键
     * @return 结果
     */
    @Override
    public int deleteScglGiveByGiveIds(Long[] giveIds)
    {
        return scglGiveMapper.deleteScglGiveByGiveIds(giveIds);
    }

    /**
     * 删除产品信息信息
     * 
     * @param giveId 产品信息主键
     * @return 结果
     */
    @Override
    public int deleteScglGiveByGiveId(Long giveId)
    {
        return scglGiveMapper.deleteScglGiveByGiveId(giveId);
    }
}
